

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
import java.util.Scanner;

public class ClientAgain {
	public static void main(String args[]) throws Exception{
		Socket client = new Socket("172.18.111.209",10007);
		BufferedReader in =  new BufferedReader(new InputStreamReader(client.getInputStream()));
		PrintStream out = new PrintStream(client.getOutputStream());
		Scanner cin = new Scanner(System.in);
		while(true){
			out.println(cin.nextLine());
//			client.getInputStream().read();
		}
		
//		System.out.println(in.readLine());
	}
}
